package com.kou.backend.request.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 保存用户信息请求体
 *
 * @author: Kou
 * @since: 2023/8/29 19:38
 */
@Data
public class SaveUserReqDTO {
    /**
     * id 编辑时传参
     */
    private String id;
    /**
     * 用户账号
     */
    @NotBlank(message = "用户账号不能为空")
    @Schema(name = "userAccount", description = "用户账号")
    private String userAccount;
    /**
     * 用户名称
     */
    @NotBlank(message = "用户名称不能为空")
    @Schema(name = "userName", description = "用户名称")
    private String userName;
    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @Schema(name = "phone", description = "手机号")
    private String phone;
    /**
     * 邮箱
     */
    @Schema(name = "email", description = "邮箱")
    private String email;
    /**
     * 密码
     */
    @Schema(name = "password", description = "密码")
    private String password;
}
